# movie = ["少林寺", "尖峰时刻", "哪吒"]
# print(len(movie))
# movie2 = ["天气之子", "烟囱之城"]
# movie.extend(movie2)
# print(movie)
#
# movie.append("悟空")
# print(movie)
#
# movie.pop()
# print(movie)
#
# movie.remove("尖峰时刻")
# print(movie)
#
# movie.insert(0, "流浪地球")
# print(movie)

import headfirst.modular.neter

# for 遍历列表
movies = ["流浪地球", "战狼2", ["你的名字", ["范海辛", "卡耐基"]]]
# for movie in movies:
#     if isinstance(movie, list):
#         for m in movie:
#             print(m)
#     else:
#         print(movie)




headfirst.modular.neter.printList(movies)
headfirst.modular.neter.printList(movies, True)
